import { EntityModel } from '@midwayjs/orm';
import {Column, PrimaryColumn} from 'typeorm';
@EntityModel('mid_role_user')
export class RoleUser {
  constructor(data) {
    let newData = data || {};
    this.id = newData.id;
    this.roleId = newData.roleId;
    this.userId = newData.userId;
  }

  @PrimaryColumn({
    length:36
  })
  id: string;
  @Column({
    length:36
  })
  roleId: string;
  @Column({
    length:36
  })
  userId: string;
}
